package cn.wu.reggie.service;

import cn.wu.reggie.common.R;
import cn.wu.reggie.entity.Employee;
import cn.wu.reggie.query.EmployeeQuery;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

public interface IEmployeeService extends IService<Employee> {

    //登陆的方法，返回对象是R，R里面要存储当前登录成功的用户
    R<Employee> login(Employee param);

    R saveOne(Employee employee);

    Page<Employee> queryPage(EmployeeQuery qo);

    R update(Employee employee);

    // 根据id查询员工
    R<Employee> findById(Long id);
}


